<?php
/**
 * 获取住院体征预警值 模型
 * @authors xiadx (xiadx@zpdchina.com)
 * @date    2017-03-06 14:30:46
 * @version $Id$
 */

class ZhuyuanTizhengYujingzhiModel extends BaseModel {

	/**
     * 返回给终端的可执行sql语句的字段名称数组
     * @var [type]
     */
    public $_field_arr = ['id','leibie','max','fangshi', 'min'];

    public function ls()
    {
    	$field_str = implode(',', $this->_field_arr);
    	$query = DB::select($field_str)
    				->from('zhuyuan_tizheng_yujingzhi')
    				->where('yiyuan_id', '=', $this->yiyuan_id)
                    ->execute()
                    ->as_array();
		return $query;
    }
}
